define([
    'angular',
    'core/services/action',
    'core/providers/provider'
], function(angular, actions) {
    var service = angular.module('app.service', ['app.provider']);

    service.run(['ActionProvider', function(ActionProvider) {
        // load actions
        angular.forEach(actions, function(actionConfigs) {
            angular.forEach(actionConfigs, function(actionConfig) {
                ActionProvider.register(actionConfig);
            });
        });
    }]);

    return service;
});
